using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JMClient.Models.PhysicalComponents
{
    [Table("DeviceEntity")]
    public class DeviceEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Required]
        public string Name { get; set; }

        [Required]
        public string Type { get; set; } // 组件类型，如“运动控制器”、“相机TCP”等

        
        public bool Using { get; set; } // 组件类型，如“运动控制器”、“相机TCP”等
        
        public string ModuleRegion { get; set; } // 加载区域
        public string Description { get; set; }
        public string Model { get; set; }
        public string Manufacturer { get; set; }
        public DateTime CreateTime { get; set; } = DateTime.Now;
        public DateTime UpdateTime { get; set; } = DateTime.Now;
    }
}